# 普通副本无限循环

import emulator
import time


def now_time() -> str:
    return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))


if __name__ == '__main__':
    print(f'[{now_time()}] 开始')
    finish_count = 0
    while True:
        if emulator.is_finish_fight():
            finish_count += 1
            print(f'[{now_time()}] 已完成 {finish_count} 次副本')
            emulator.click_zone(778, 601, 911, 642)
        else:
            # print(f'[{now_time()}] Waiting')
            emulator.delay(5)
